package com.zygh.dlqwservice.module.mapper;

import com.zygh.dlqwservice.module.entity.JobsUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zygh.dlqwservice.module.entity.vo.PositionRelationAddVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author lee
 * @since 2020-12-24
 */
@Mapper
@Repository
public interface JobsUserMapper extends BaseMapper<JobsUser> {
    /**
     * 根据警号和岗位id查询
     *
     * @param jobsUser
     * @return
     */
    JobsUser findJobsUser(JobsUser jobsUser);

    /**
     * 批量新增警员 岗位关系
     * @param positionRelationAddVO
     * @return
     */
    int batchJobsUser(@Param("batchDVO") PositionRelationAddVO positionRelationAddVO);

}
